﻿<div class="col-lg-8 col-sm-8 col-xs-12 fluid-col">
        <div class="widget">
            <div class="widget-header bg-blue">
                <i class="widget-icon fa fa-tachometer"></i>
                <span class="widget-caption">系统信息</span>
                <div class="widget-buttons">
                    <a href="#" data-toggle="maximize">
	                    <i class="fa fa-expand"></i>
                    </a>
                    <a href="#" data-toggle="collapse">
	                    <i class="fa fa-minus"></i>
                    </a>
                    <a href="#" data-toggle="dispose">
	                    <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="widget-body table-responsive">
                <table class="table">
                    <tr>
	                    <td>系统名称</td>
	                    <td><?=$siteinfo->name;?></td>
                    </tr>
                    <tr>
	                    <td>ICP备案</td>
	                    <td><?=$siteinfo->icp ? $siteinfo->icp : '无' ;?></td>
                    </tr>
                    <tr>
	                    <td>系统目录</td>
	                    <td><?=APPPATH;?></td>
                    </tr>
					
                </table>
            </div>
        </div>
        <div class="widget">
            <div class="widget-header bg-blue">
                <i class="widget-icon fa fa-calendar"></i>
                <span class="widget-caption">登录信息</span>
                <div class="widget-buttons">
                    <a href="#" data-toggle="maximize">
	                    <i class="fa fa-expand"></i>
                    </a>
                    <a href="#" data-toggle="collapse">
	                    <i class="fa fa-minus"></i>
                    </a>
                    <a href="#" data-toggle="dispose">
	                    <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="widget-body table-responsive">
                <table class="table">
				<?php
				foreach( $log as $v ):
				?>
                    <tr>
	                    <td><?=date( 'Y-n-j H:i:s', $v->time );?></td>
	                    <td><?=$v->action;?></td>
	                    <td><?=$v->ip;?></td>
                    </tr>
				<?php
				endforeach;
				?>
                </table>
            </div>
        </div>

</div>
<div class="col-lg-4 col-sm-4 col-xs-12 fluid-col">
        <div class="widget">
            <div class="widget-header">
                <i class="widget-icon fa fa-tachometer"></i>
                <span class="widget-caption">服务器信息</span>
                <div class="widget-buttons">
                    <a href="#" data-toggle="maximize">
	                    <i class="fa fa-expand"></i>
                    </a>
                    <a href="#" data-toggle="collapse">
	                    <i class="fa fa-minus"></i>
                    </a>
                    <a href="#" data-toggle="dispose">
	                    <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="widget-body table-responsive">
                <table class="table">
                    <tr>
	                    <td style="min-width:100px; ">域名/IP</td>
	                    <td><?=GetHostByName($_SERVER['SERVER_NAME']) . ':' . $_SERVER['SERVER_PORT'];?></td>
                    </tr>
                    <tr>
	                    <td>服务器标识</td>
	                    <td><?=php_uname()?></td>
                    </tr>
                    <tr>
	                    <td>脚本引擎</td>
	                    <td><?=$_SERVER['SERVER_SOFTWARE'] . ';' .php_sapi_name();?></td>
                    </tr>
                    <tr>
	                    <td>服务器语言</td>
	                    <td><?=$_SERVER['HTTP_ACCEPT_LANGUAGE'];?></td>
                    </tr>
                    <tr>
	                    <td>数据库</td>
	                    <td><?=$dbinfo?></td>
                    </tr>
                    <tr>
	                    <td>物理路径</td>
	                    <td><?=APPPATH?></td>
                    </tr>
                </table>
            </div>
        </div>
        <div class="widget">
            <div class="widget-header">
                <i class="widget-icon fa fa-tachometer"></i>
                <span class="widget-caption">客户端信息</span>
                <div class="widget-buttons">
                    <a href="#" data-toggle="maximize">
	                    <i class="fa fa-expand"></i>
                    </a>
                    <a href="#" data-toggle="collapse">
	                    <i class="fa fa-minus"></i>
                    </a>
                    <a href="#" data-toggle="dispose">
	                    <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="widget-body table-responsive">
                <table class="table">
                    <tr>
	                    <td style="min-width:100px; ">本机IP</td>
	                    <td><?=$cip;?></td>
                    </tr>
                    <tr>
	                    <td>浏览器</td>
	                    <td><?=$agent?></td>
                    </tr>
                </table>
            </div>
        </div>
</div>